package com.techstar.ats.dxp.history;

import java.time.LocalDateTime;

import com.techstar.ats.dxp.CsvFormatter;
import com.techstar.ats.type.DirectionType;
import com.techstar.ats.type.StoreType;

public class F22InusedRecord implements CsvFormatter {
	private static final long serialVersionUID = 1L;
	public int station;
	public int platform;
	public LocalDateTime arriveTime;
	public LocalDateTime departTime;
	public StoreType store;
	public DirectionType dir;

	public boolean toCsvString(StringBuffer sb) {
		sb.append(this.station)
			.append(',')
			.append(this.platform)
			.append(',')
			.append(this.arriveTime.format(DATE_TIME_FORMATTER))
			.append(',')
			.append(this.departTime.format(DATE_TIME_FORMATTER))
			.append(',')
			.append(this.store.value())
			.append(',')
			.append(this.dir.value());
		return true;
	}
}
